package com.tianma.upload.uploadjartest.factory.simple;

/**
 * @author lgc
 * @createDate 2020/8/7 - 9:39
 */
public class SimpleFatory {
    public static ICar getCarByName(CarType carType){
        if (carType.equals(CarType.BAOMA)){
            return new BaomaCar();
        }else if (carType.equals(CarType.BENCHI)){
            return new BenchiCar();
        }
        return null;

    }
}
